#!/bin/sh


cpu_cores=`cat /proc/cpuinfo | grep -c 'model name' | tr -s " " | sed 's/^[ ]//g'`
cpu_model=`cat /proc/cpuinfo | grep -m 1 'model name' | cut -d: -f2 | tr -s " " | sed 's/^[ ]//g'`
ram_total=`cat /proc/meminfo | grep MemTotal | cut -d: -f2 | tr -s " " | sed 's/^[ ]//g'`
ram_free=`cat /proc/meminfo | grep MemFree | cut -d: -f2 | tr -s " " | sed 's/^[ ]//g'`
swap_total=`cat /proc/meminfo | grep SwapTotal | cut -d: -f2 | tr -s " " | sed 's/^[ ]//g'`
swap_free=`cat /proc/meminfo | grep SwapFree | cut -d: -f2 | tr -s " " | sed 's/^[ ]//g'`
host_name=`uname -n`
os_type=`uname -o`
arch=`uname -m`
kernel=`uname -r`
server_time=`date`
username="`whoami`"

# 0
echo "Cpu Cores==${cpu_cores}"
# 1
echo "Cpu Model==${cpu_model}"
# 2
echo "RAM Total==${ram_total}"
# 3
echo "RAM Free==${ram_free}"
# 4
echo "Swap Total==${swap_total}"
# 5
echo "Swap Free==${swap_free}"
# 6
echo "Hostname==${host_name}"
# 7
echo "Operating System==${os_type}"
# 8
echo "Arch==${arch}"
# 9
echo "Kernel==${kernel}"
# 10
echo "Server Time==${server_time}"
# 11 - test
echo "Username==${username}"
